package com.highcom.service.impl;

import com.highcom.dao.AccountMapper;
import com.highcom.domain.Account;
import com.highcom.service.AccountService;

import java.util.List;

public class AccountServiceImpl implements AccountService {

    private AccountMapper accountMapper;

    public void setAccountMapper(AccountMapper accountMapper) {
        this.accountMapper = accountMapper;
    }


    @Override
    public void transfer(String outName, String inName, Double money) {
        accountMapper.inMoney(outName,money);
        //int i = 1/0;
        accountMapper.outMoney(inName,money);
    }
}
